import * as UniApi from './uni-api.js'
const model = 'photo'

export function getList(params) {
  return UniApi.getList(model, params)
}

export function deleteItem(id) {
  return UniApi.deleteItem(model, id)
}

export function uploadItem(data) {
  return UniApi.uploadItem(model, data)
}

export function updateAttrById(attribute, id, data) {
  return UniApi.updateAttrById(model, attribute, id, data)
}

export function updateNameById(id, data) {
  return UniApi.updateAttrById(model, 'name', id, data)
}

export function updateAuthorById(id, data) {
  return UniApi.updateAttrById(model, 'author', id, data)
}

export function updateDescById(id, data) {
  return UniApi.updateAttrById(model, 'desc', id, data)
}

export function updateCatalogById(id, data) {
  return UniApi.updateAttrById(model, 'catalog', id, data)
}

